package com.yager.model;

import java.io.Serializable;
import java.util.Date;

public class Comment implements Serializable {
    private String commentid;

    private Date commentdate;

    private String userid;

    private String typeid;

    private String commentdescription;

    public Comment(String commentid, Date commentdate, String userid, String typeid, String commentdescription) {
        this.commentid = commentid;
        this.commentdate = commentdate;
        this.userid = userid;
        this.typeid = typeid;
        this.commentdescription = commentdescription;
    }

    private static final long serialVersionUID = 1L;

    public String getCommentid() {
        return commentid;
    }

    public void setCommentid(String commentid) {
        this.commentid = commentid;
    }

    public Date getCommentdate() {
        return commentdate;
    }

    public void setCommentdate(Date commentdate) {
        this.commentdate = commentdate;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getTypeid() {
        return typeid;
    }

    public void setTypeid(String typeid) {
        this.typeid = typeid;
    }

    public String getCommentdescription() {
        return commentdescription;
    }

    public void setCommentdescription(String commentdescription) {
        this.commentdescription = commentdescription;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", commentid=").append(commentid);
        sb.append(", commentdate=").append(commentdate);
        sb.append(", userid=").append(userid);
        sb.append(", typeid=").append(typeid);
        sb.append(", commentdescription=").append(commentdescription);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}